﻿using System;
using System.Collections.Generic;

namespace TallyBook.BLL.Service
{
    public interface IAccountService<TEntity> where TEntity : class, new()
    {
        int Insert(long accountid, long accounttypeid, string accountname, decimal initmoney,
            decimal currentmoney, string comment, DateTime time);

        int Update(long accounttypeid, long accountid, string accountname, decimal initmoney,
            decimal currentmoney, string comment, DateTime time);

        int Delete(long entity);

        TEntity Get(long id);

        List<TEntity> GetAll();
    }
}